package logic;

import dataAccess.RateDB;
import exception.MyException;

public class Rate {
	private int idRate;
	private long rateValue;
	public int getIdRate() {
		return idRate;
	}
	public void setIdRate(int idRate) {
		this.idRate = idRate;
	}
	public long getRateValue() {
		return rateValue;
	}
	public void setRateValue(long rateValue) {
		this.rateValue = rateValue;
	}
	
	public double getRate() throws MyException {
		RateDB rateDB = new RateDB();
		return (rateDB.select());
	}
}
